package com.gui.spring.ioc;

import org.springframework.context.support.ClassPathXmlApplicationContext;

public class ClassPathXmlDemo {

    public static void main(String[] args) {
        ClassPathXmlApplicationContext context = new ClassPathXmlApplicationContext("classpath:ioc/beans.xml");
        for (String name : context.getBeanDefinitionNames()) {
            System.out.println(name);
        }
    }
}
